﻿using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
using DocumentMaking.Lib.Models;

namespace DocumentMaking.FluentNext.Dialogs;

public partial class MemberInfoDialog : UserControl
{
    public MemberInfoDialog(MemberModel memberModel)
    {
        InitializeComponent();
        var a = new IdCardModel(memberModel);
        NameBlock.Text = a.Name;
        IdBlock.Text = a.Id;
        AddressBlock.Text = !string.IsNullOrEmpty(a.Address) ? a.Address : "查询不到该地址";
    }
}